﻿namespace Ledict.Utility.Frm.Model
{
    /// <summary>
    ///     Combox扩展实体，实现Combox的Text和Value绑定
    /// </summary>
    public class ComboxItem
    {
        public ComboxItem(string text, string value)
        {
            Text = text;
            Value = value;
        }
        /// <summary>
        /// 显示文本
        /// </summary>
        public string Text { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// 重写ToString方法,输出文本内容
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return Text;
        }
    }
}